#ifndef DIALOG_H
#define DIALOG_H

#include <QDialog>
#include <QString>
#include <QVariant>
#include <QSettings>
#include <QLabel>
#include <QLineEdit>
#include <QPushButton>
#include <QPlainTextEdit>
#include <QFileDialog>
#include <QUuid>
#include <QFile>
#include <QTextStream>

#define P_TMP "/tmp/"
#define D_ENTRY QString("Desktop Entry/")

namespace Ui {
class Dialog;
}

class Dialog : public QDialog
{
    Q_OBJECT

public:
    explicit Dialog(QWidget *parent = 0);
    ~Dialog();

    void loadFile(const QString &fileName);
    void loadTmpFile(const QString &fileName);

private slots:
    void on_btn_load_clicked();
    void on_pick_exec_clicked();
    void on_pick_icon_clicked();
    void on_btn_clean_clicked();
    void on_pick_path_clicked();
    void on_btn_generate_clicked();
    void on_btn_write_clicked();
    void on_btn_clean_setting_clicked();

private:
    Ui::Dialog *ui;

    QString _fileName;
    QString _appName;
    QString _tmpFileName;
};

#endif // DIALOG_H
